package com.runfast.waimai.service.impl;

import com.runfast.common.service.BaseService;
import com.runfast.waimai.dao.mapper.RunfastCreditlevelMapper;
import com.runfast.waimai.dao.model.RunfastCreditlevel;
import com.runfast.waimai.dao.model.RunfastCreditlevelExample;
import com.runfast.waimai.service.RunfastCreditlevelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RunfastCreditlevelServiceImpl extends BaseService<RunfastCreditlevel, Integer, RunfastCreditlevelExample> implements RunfastCreditlevelService {
    @Resource
    RunfastCreditlevelMapper dao;
    @Override
    public List<RunfastCreditlevel> findAll() {
        return dao.findAll();
    }

    @Override
    public RunfastCreditlevel findAgentid(Integer agentId) {
        return dao.findAgentid(agentId);
    }

    @Override
    public RunfastCreditlevel get(Integer id) {
        return dao.get(id);
    }

    @Override
    public void delete(Integer id) {
        dao.delete(id);
    }

    @Override
    public List<RunfastCreditlevel> findcreditlevelAndAgentid(Integer endgrade, String agentname) {
        return dao.findcreditlevelAndAgentid(endgrade, agentname);
    }


}